#ifndef CBUTTON_H_
#define CBUTTON_H_

#include "cdefaultfocusdynamicguiobject.h"
#include "cdefaultkeydowndynamicguiobject.h"
#include "cdefaultonadddynamicguiobject.h"

// Foward declarations
class CSpinBox;

/**
 * CButton - class representing gui button
 * @author Michal Rost
 * @date 07.04.2008
 */
class CButton : public CDefaultFocusDynamicGuiObject,
  public CDefaultOnAddDynamicGuiObject,
  public CDefaultKeyDownDynamicGuiObject {
  friend class CSpinBox;
public:
  CButton(string text = "");
  string getText() const;
  void setText(string text);
  static string getClassName() {
    return "CButton";
  }
protected:
  string text;
  void drawSelf(CGuiRenderer* rendererPtr);
};

#endif
